<%= form_for(:photo, :url=>{:action=>'create'}, :html=>{:multipart=>true}) do |f| %>
  <% if @photo.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@photo.errors.count, "error") %> prohibited this photo from being saved:</h2>

      <ul>
      <% @photo.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  
    <div class="field">
    <%= f.file_field :image_file %>
    
    </div>
  <div class="actions">
    <%= f.submit%>
  </div>
<% end %>
